package com.originit.order.server.enums;

import lombok.Getter;

@Getter
public enum  ResultEnum {

    SUCCESS(1,"请求成功"),
    PARAM_ERROR(10000,"参数异常"),
    JSON_FORMAT_ERROR(10001,"json格式异常"),
    GOOD_STOCK_NOT_ENOUGH(20001,"商品库存不足");

    private Integer code;

    private String message;

    private ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
